<% layout("/layout.html",{title:"岑峦网-相册"}){ %>
	<style type="text/css">
		.thumbnail{
			position: relative;	
		}
		.thumbnail .pic-num{
			color: white;
			position: absolute;
			font-size: 36px;
			font-weight: bolder;
			top: 5px;
			left: 5px;
		}
	</style>
	<div class="row">
		<%for(gallery in page.list){
			var cover = gallery.cover;
		%>
		
		<div class="col-xs-6 col-sm-3 col-md-2">
			<div class="thumbnail">
		      <div class="pic-num">${photoCount}</div>
		      <%if(isEmpty(cover)){%>
		      <img src="${ctx}/static/img/gallery-cover.jpg" alt="封面">
		      <%}else{%>
		      <img src="${cover.url}" alt="封面">
		      <%}%>
		      <div class="caption">
		      	<p>${gallery.title}</p>
		      </div>
		    </div>
		</div>
		<%}elsefor{%>
		<div class="container-fluid">没有记录</div>
		<%}%>
	</div>
	${pageLink}
<%}%>
